package com.example.mapper;

import com.example.domain.po.Permissions;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface    PermissionsMapper {
    int deleteByPrimaryKey(Integer permissionId);

    int insert(Permissions record);

    int insertSelective(Permissions record);

    Permissions selectByPrimaryKey(Integer permissionId);

    int updateByPrimaryKeySelective(Permissions record);

    int updateByPrimaryKey(Permissions record);

    /**
     * 获取权限角色权限列表
     * @param permissionIds 权限id
     * @return 权限角色权限列表
     */
    List<Permissions> batchGetPermissionByPermissionId(List<Integer> permissionIds);
}